home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 22
/
Cream of the Crop 22.iso
/
doom
/
quake2.zip
/
QUEST091.ZIP
/
GO5.BAT
< prev
next >
Wrap
DOS Batch File
|
1996-10-16
|
1KB
|
71 lines
@echo off
rem
rem ******** Quest Quake startup batch file ***********
rem ******** Full Build Version
rem
set CurDrive=c:
set CurDir=\prog\quest
set QuakeDrive=d:
set QuakeDir=\quake
set BSPPath=d:\quest\qbsp_win
md quest.tmp
copy %1.map quest.tmp
cd quest.tmp
rem ---------
rem QBSP Step
rem ---------
%BSPPath%\qbsp %1
if errorlevel 1 goto BailQBSP
goto OkQBSP
:BailQBSP
echo Error building BSP! Hit SPACE to abort or wait to continue...
wait 5
if errorlevel 2 goto Bailout
:OkQBSP
rem ----------
rem Light Step
rem ----------
%BSPPath%\light -extra %1
if errorlevel 1 goto BailLight
goto OkLight
:BailLight
echo Error building Lightmaps! Hit SPACE to abort or wait to continue...
wait 5
if errorlevel 2 goto Bailout
:OKLight
rem --------
rem Vis step
rem --------
%BSPPath%\vis -level 4 %1
if errorlevel 1 goto BailVis
goto OkVis
:BailVis
echo Error building PVS! Hit SPACE to abort or wait to continue...
wait 5
if errorlevel 2 goto Bailout
:OkVis
del %1.h1 > nul
del %1.h2 > nul
copy %1.bsp %QuakeDrive%%QuakeDir%\id1\maps > nul
copy %1.bsp %CurDrive%%CurDir% > nul
move %1.pts %QuakeDrive%%QuakeDir%\id1\maps > nul
%QuakeDrive%
cd %QuakeDir%
quake +map %1
%CurDrive%
cd %CurDir%
goto Exit
:Bailout
cd..
deltree /y quest.tmp
:Exit
deltree /y quest.tmp
echo.